<script lang="ts" setup>
  import { inject, onMounted } from "vue";

  const currentIndex = inject("currentIndex", 0);

  defineProps<{ index?: number }>();

  onMounted(() => {
    // if (currentIndex.value === instance.vnode.key) {
    //     instance.refs.item.style.display = 'block'
    // }
  });
</script>
<template>
  <div class="umrp-carousel-item" v-if="currentIndex === index">
    <slot></slot>
  </div>
</template>
